﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

/// <summary>
/// 负责显示致命的（不能继续显示网页）的数据库错误
/// 含有GET参数：
/// error_msg —— 错误信息，将在页面中显示
/// </summary>
public partial class DBError : System.Web.UI.Page
{
    /// <summary>
    /// 将错误信息显示在页面上
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["error_msg"] != null)
        {
            errormsg.InnerHtml = Request.QueryString["error_msg"].Replace('-', ' ');
        }
    }
}